﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BaseInfoMaster.master" AutoEventWireup="true"
    CodeFile="ConsumerSpendingHabits.aspx.cs" Inherits="AnalysisReport_ConsumerSpendingHabits"
    CodeFileBaseClass="Frame.Pages.BasePage" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="stylesheet" href="../Content/Site.css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1 class="DemoTitle">
        客户[<%= (Frame.Pages.RefrenceContext<DAL.BI_Consumer>.Current == null ? string.Empty : (Frame.Pages.RefrenceContext<DAL.BI_Consumer>.Current.Model.CName))%>]消费习惯分析
        <asp:HyperLink ID="BackLink" runat="server">返回</asp:HyperLink>
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <table runat="server" id="QueryTable">
            <tr>
                <td>
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="开始时间：" Font-Size="10pt" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        CssPostfix="DevEx">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxDateEdit ID="datStart" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        CssPostfix="DevEx" EnableAnimation="False" Font-Size="10pt" Spacing="0" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                        <CalendarProperties ClearButtonText="清除" TodayButtonText="今天">
                            <HeaderStyle Spacing="1px" />
                        </CalendarProperties>
                        <ButtonStyle Width="13px">
                        </ButtonStyle>
                    </dx:ASPxDateEdit>
                </td>
                <td>
                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="结束时间：" Font-Size="10pt" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        CssPostfix="DevEx">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxDateEdit ID="datEnd" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        CssPostfix="DevEx" EnableAnimation="False" Font-Size="10pt" Spacing="0" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                        <CalendarProperties ClearButtonText="清除" TodayButtonText="今天">
                            <HeaderStyle Spacing="1px" />
                        </CalendarProperties>
                        <ButtonStyle Width="13px">
                        </ButtonStyle>
                    </dx:ASPxDateEdit>
                </td>
                <td style="padding-left: 5px">
                    <dx:ASPxButton ID="btnQuery" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        CssPostfix="DevEx" Font-Size="10pt" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                        Text="查询" AutoPostBack="False" UseSubmitBehavior="False">
                        <ClientSideEvents Click="function(s,e){QueryPanel.PerformCallback(); }" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxCallbackPanel ID="QueryCBPanel" ClientInstanceName="QueryPanel" runat="server"
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" OnCallback="QueryCBPanel_Callback">
            <LoadingPanelImage Url="~/App_Themes/DevEx/Web/Loading.gif">
            </LoadingPanelImage>
            <LoadingPanelStyle ImageSpacing="5px">
            </LoadingPanelStyle>
            <PanelCollection>
                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                    <dx:ASPxRoundPanel ID="Detailpanel" runat="server" Width="600px" HeaderText="客户总体消费信息"
                        Font-Size="10pt" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx"
                        EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
                        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                        <ContentPaddings PaddingBottom="10px" PaddingLeft="7px" PaddingRight="11px" PaddingTop="10px" />
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="7px" PaddingRight="11px" PaddingTop="1px" />
                        </HeaderStyle>
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                <table width="100%" style="font-size: 10pt">
                                    <tr>
                                        <td width="200px" style="white-space: nowrap">
                                            最低金额:
                                        </td>
                                        <td>
                                            <dx:ASPxLabel Width="100px" ID="View_Min" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td width="200px" style="white-space: nowrap">
                                            最高金额:
                                        </td>
                                        <td>
                                            <dx:ASPxLabel Width="100px" ID="View_Max" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px" style="white-space: nowrap">
                                            总金额：
                                        </td>
                                        <td>
                                            <dx:ASPxLabel Width="100px" ID="View_Total" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td width="200px" style="white-space: nowrap">
                                            消费次数：
                                        </td>
                                        <td>
                                            <dx:ASPxLabel Width="100px" ID="View_CViews" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px" style="white-space: nowrap">
                                            平均金额（元/次）:
                                        </td>
                                        <td>
                                            <dx:ASPxLabel Width="100px" ID="View_CAve" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td width="200px" style="white-space: nowrap">
                                            订餐台数:
                                        </td>
                                        <td>
                                            <dx:ASPxLabel Width="100px" ID="View_Table" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px" style="white-space: nowrap">
                                            餐位平均消费金额:
                                        </td>
                                        <td colspan="3">
                                            <dx:ASPxLabel Width="200px" ID="View_TableAve" Wrap="true" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                                CssPostfix="DevEx">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxRoundPanel>
                    <dx:ASPxTabControl ID="TabArea" Font-Size="10pt" runat="server" Width="100%" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" ActiveTabIndex="0">
                        <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px" />
                        <ContentStyle>
                            <Border BorderColor="#9DA0AA" BorderStyle="Solid" BorderWidth="1px" />
                        </ContentStyle>
                        <ClientSideEvents ActiveTabChanged="function(s,e){grid.PerformCallback(s.GetActiveTabIndex()); }" />
                        <Tabs>
                            <dx:Tab Text="就餐餐位排行榜" ToolTip="就餐餐位排行榜">
                            </dx:Tab>
                            <dx:Tab Text="菜品消费排行榜" ToolTip="菜品消费排行榜">
                            </dx:Tab>
                            <dx:Tab Text="就餐时段排行榜" ToolTip="就餐时段排行榜">
                            </dx:Tab>
                        </Tabs>
                    </dx:ASPxTabControl>
                    <dx:ASPxGridView ID="gridView" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                        ClientInstanceName="grid" CssPostfix="DevEx" Width="100%" OnCustomCallback="gridView_CustomCallback">
                        <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="5px">
                            </LoadingPanel>
                        </Styles>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <StylesEditors ButtonEditCellSpacing="0">
                            <ProgressBar Height="21px">
                            </ProgressBar>
                        </StylesEditors>
                        <SettingsEditing EditFormColumnCount="1" />
                    </dx:ASPxGridView>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxCallbackPanel>
    </div>
</asp:Content>
